package org.raymond.iworks.study.basic.designpattern.decorator;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
public class CoffeeBar {
    public static void main(String[] args) {
        Drink drink = new LongBlack();
        System.out.println("drink:"+drink.getDes());
        drink = new Milk(drink);
        System.out.println("drink:"+drink.getDes());
        drink = new Chocolate(drink);
        System.out.println("drink:"+drink.getDes());
        drink = new Chocolate(drink);
        System.out.println("drink:"+drink.getDes());
    }
}
